package com.qiche.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.qiche.aspect.Result;
import com.qiche.dto.ProductWithStagesDto;
import com.qiche.model.Product;

/**
 * Created by Linzw on 2018/01/24.
 */
public interface ProductService extends IService<Product>{
    PageInfo<Product> selectByPage(Product product, int start, int length);
    Product selectById(Long id);
	Result delProduct(Long productId);
	List<Product> selectByCate(Long cateId);
	List<Product> selectByRegion(Long regionId);

    /**
     * 根据 商店id 获取其对应的服务
     * @param merchantId
     * @return
     */
    List<Product> selectByMerchantId(Long merchantId);
    Result addOrUpdateProduct(ProductWithStagesDto pwsDto);
}
